#ifndef _MPU6050_H
#define _MPU6050_H

struct ACCEL_DATA{
	unsigned short x;
	unsigned short y;
	unsigned short z;
};


struct GYRO_DATA{
	unsigned short x;
	unsigned short y;
	unsigned short z;
};

union mpu6050_data{
	struct ACCEL_DATA accel;
	struct GYRO_DATA gyro;
	unsigned short temp;
};

#define MPU6050_MAGIC 'k'

#define GET_ACCEL _IOR(MPU6050_MAGIC, 0, union mpu6050_data)
#define GET_GYRO _IOR(MPU6050_MAGIC, 1, union mpu6050_data)
#define GET_TEMP _IOR(MPU6050_MAGIC, 2, union mpu6050_data)

#endif
